32on64: increase size of compat argument translation area to 2 pages.
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 6 Jul 2009 10:55:17 +0000 (11:55 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 6 Jul 2009 10:55:17 +0000 (11:55 +0100)
The existing single page is not quite large enough to translate a
XENMEM_exchange hypercall with order=3D9. Since Linux uses
MAX_CONTIG_ORDER of 9 this seems like a reasonable upper bound to
support.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
xen/include/asm-x86/x86_64/uaccess.h

index f76be30d3e22a1bad08ff3d0ef977134fa7f7da1..40f5e4210d0a739b12d1287c13bffd193ceddda7 100644 (file)
@@ -2,7 +2,7 @@
 #define __X86_64_UACCESS_H
 
 #define COMPAT_ARG_XLAT_VIRT_BASE this_cpu(compat_arg_xlat)
-#define COMPAT_ARG_XLAT_SIZE      PAGE_SIZE
+#define COMPAT_ARG_XLAT_SIZE      (2*PAGE_SIZE)
 DECLARE_PER_CPU(void *, compat_arg_xlat);
 int setup_compat_arg_xlat(unsigned int cpu, int node);
 #define is_compat_arg_xlat_range(addr, size) ({                               \